package com.penghaisoft.microwms.material.web.insidewarehouse.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.penghaisoft.microwms.common.dto.RawStorageDto;
import com.penghaisoft.microwms.common.dto.TransResult;
import com.penghaisoft.microwms.common.page.Pager;
import com.penghaisoft.microwms.common.wms.model.RawCountingRecords;
import com.penghaisoft.microwms.common.wms.model.RawLockLog;
import com.penghaisoft.microwms.common.wms.model.RawStorage;
import com.penghaisoft.microwms.common.wms.model.RawStorageSn;
import com.penghaisoft.microwms.material.web.insidewarehouse.service.IMaterialInsideService;

import lombok.extern.slf4j.Slf4j;

import com.penghaisoft.microwms.common.controller.BaseController;


@RestController
@RequestMapping(value = "insidewarehouse/rawcountingrecords")
@Slf4j
public class InsideRawCountingRecordsController extends BaseController  {
	
	@Autowired
	private IMaterialInsideService iMaterialInsideService;
	
	@GetMapping("r/detail")
	public TransResult findRawCountingRecordsByCode(RawCountingRecords rawCountingRecords) {
		rawCountingRecords.preQuery();
		List<RawCountingRecords> list = iMaterialInsideService.findRawCountingRecordsByCode(rawCountingRecords);
		return success(list);
	}
	
}
